<script lang="ts" setup name="App">
import  person from './components/person.vue'
import { ref } from 'vue'

let ren = ref()


function showLog () {
  console.log(ren.value)//有一个保护措施

}
</script>

<template>
    <!--    vue3可以写多个根标签-->
  <button @click="showLog">输出</button>
  <person ref="ren"/>
<!--    <person/>-->
<!--    <person/>-->
</template>

<style scoped>

</style>